﻿/*
 * KLF Headless Browser
 * Written by Kris Oye <kristianoye@gmail.com>
 * Copyright (C) 2011-2012.  All rights reserved.
 */
namespace KLF.Lib.Browser.DOM.HTML
{
    /// <summary>
    /// Document base URI [IETF RFC 2396]. 
    /// See the BASE element definition in HTML 4.01.
    /// </summary>
    class HTMLBaseElement : HTMLElement
    {
        #region Constructors

        internal HTMLBaseElement(Document owner)
            : base(owner, HTMLConstants.HTML_TAG_BASE)
        {
        }

        #endregion

        #region DOM Level 2 HTML Compliance

        /// <summary>
        /// The base URI [IETF RFC 2396]. See the href attribute 
        /// definition in HTML 4.01.
        /// </summary>
        public string href
        {
            get
            {
                return getAttribute(HTMLConstants.HTML_ATT_HREF);
            }
            set
            {
                setAttribute(HTMLConstants.HTML_ATT_HREF, value);
            }
        }

        /// <summary>
        /// The default target frame. See the target attribute 
        /// definition in HTML 4.01.
        /// </summary>
        public string target
        {
            get
            {
                return getAttribute(HTMLConstants.HTML_ATT_TARGET);
            }
            set
            {
                setAttribute(HTMLConstants.HTML_ATT_TARGET, value);
            }
        }

        #endregion
    }
}
